<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" href="__PUBLIC__css/public.css">

    <style type="text/css" media="screen">
    body {
        padding-left: 50px;
        padding-right: 50px;
    }
    </style>
    <script type="text/javascript" charset="utf-8">
    // function showDlg(){
    //      var Overlay = BUI.Overlay
    //       var dialog = new Overlay.Dialog({
    //         title:'模态窗口',
    //         width:500,
    //         height:250,
    //         bodyContent:'<p>这是一个模态窗口,默认带有确认取消按钮</p>',
    //         success:function () {
    //           alert('确认');
    //           this.close();
    //         }
    //       });
    //     dialog.show();
    // }

   
    function trClick(today, channel, product_id, tag) {
        if (tag == 1) {
            showModalDialog("{:U('ctcc/upinfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel + "/product_id/" + product_id, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        } else if (tag == 2) {
            showModalDialog("{:U('ctcc/tokeninfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel + "/product_id/" + product_id, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        } else if (tag == 3) {
            showModalDialog("{:U('ctcc/successinfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel + "/product_id/" + product_id, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        }else if (tag==4){
        	showModalDialog("{:U('ctcc/syncinfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel + "/product_id/" + product_id, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        }

    }
    </script>
</head>

<body>
    
    <table class="table table-bordered table-hover definewidth m10">
        <thead>
            <tr>
                <th>日期</th>
                <th>渠道号</th>
                <th>上行数</th>
                <th>token数</th>
                <th>成功数</th>
                <th>同步成功数</th>
                
            </tr>
        </thead>
        <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.today}</td>
                    <td>{$vo.channel}</td>
                    <td onclick="trClick('{$vo.today}','{$vo.channel}','{$vo.product_id}','1')">{$vo.up_count}</td>
                    <td onclick="trClick('{$vo.today}','{$vo.channel}','{$product_id}','2')">{$vo.token_count}</td>

                    <td onclick="trClick('{$vo.today}','{$vo.channel}','{$vo.product_id}','3')"> {$vo.success_count}</td>
                    <td onclick="trClick('{$vo.today}','{$vo.channel}','{$vo.product_id}','4')">{$vo.sync_count}</td>
                   
                </tr>
            </foreach>
        </tbody>
    </table>
    {$page}
</body>

</html>
